<#--  chenyi 2018-01-19 15:25:51-->
<!DOCTYPE html>
<html>
<head>
    <title>列表</title>
<#include "../resource.ftl"/>
    <script type="text/javascript" src="/company/js/list.js"></script>
</head>
<body>
<form class="layui-form " action="">
    <div class="layui-form-item">
        <label class="layui-form-label">名称:</label>
        <div class="layui-input-inline">
            <input type="text" name="" placeholder="请输入名称" class="layui-input">
        </div>

        <div class="layui-input-normal">
            <button class="layui-btn layui-btn-green" lay-submit="" lay-filter="moreSearch">
                <i class="fa fa-chevron-down">&nbsp;</i>更多
            </button>
            <button class="layui-btn search-btn" table-id="companyTable" lay-submit="" lay-filter="search">
                <i class="fa fa-search">&nbsp;</i>查询
            </button>
            <button type="reset" class="layui-btn layui-btn-primary"><i class="fa fa-refresh">&nbsp;</i>重置</button>
        </div>
    </div>
    <div class="layui-form-item more-search">
    <#-- 更多条件-->
    </div>
</form>
<div class="layui-btn-group">
<@shiro.hasPermission name="company:save">
    <button class="layui-btn" onclick="addPage('/company/add')">
        <i class="fa fa-plus">&nbsp;</i>增加
    </button>
</@shiro.hasPermission>
<@shiro.hasPermission name="company:update">
    <button class="layui-btn" onclick="editPage('companyTable','/company/edit')">
        <i class="fa fa-pencil-square-o">&nbsp;</i>修改
    </button>
</@shiro.hasPermission>
<@shiro.hasPermission name="company:delete">
    <button class="layui-btn layui-btn-delete" onclick="deleteBatch('批量删除','companyTable','/company/delete');">
        <i class="fa fa-trash-o">&nbsp;</i>删除
    </button>
</@shiro.hasPermission>

</div>
<div class="layui-form ">
    <table class="layui-table" id="companyTable" cyType="pageGrid"
           cyProps="url:'/company/listData',checkbox:'true',pageColor:'#2991d9'">
        <thead>
        <tr>
            <!--复选框-->
            <th width="1%" param="{type:'checkbox'}">
                <input type="checkbox" lay-skin="primary" lay-filter="allChoose">
            </th>
            <!--isPrimary：是否是主键-->
            <th width="40%" param="{name:'id',isPrimary:'true',hide:'true'}"></th>
            <th width="10%" param="{name:'name'}">公司名称</th>
            <th width="5%" param="{name:'base'}">省份</th>
            <th width="5%" param="{name:'legalPersonName'}">法人</th>
            <th width="10%" param="{name:'regNumber'}">注册号</th>
            <th width="10%" param="{name:'estiblishTime'}">成立日期</th>
            <th width="10%" param="{name:'regCapital'}">注册资金</th>
            <th width="10%" param="{name:'property1'}">信用代码</th>
            <!--isPrimary：渲染列-->
            <th width="10%" param="{operate:'true',buttons:'Render.state,Render.edit,Render.delete'}">操作</th>
        </tr>
        </thead>
    </table>
</div>
</body>
</html>